package com.dingwen.auause.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dingwen.auause.entity.PermissionEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * permission mapper
 *
 * @author dingwen
 * 2021.05.12 16:19
 */
@Repository
public interface PermissionMapper extends BaseMapper<PermissionEntity> {

    /*
     * 根据用户id查询权限信息
     * @param userId
     * @return PermissionEntity>
     */
    List<PermissionEntity> getPermissionsByUserId(@Param("userId") Long userId);
}
